package com.feiyuan.authority.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 后台管理员
 * @author Xupf
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AdminUser implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String userName;
    private String password;
    private String name;
    private String phone;
    private String email;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    /**
     * 关联角色
     */
    private List<Long> roleIds;
    /**
     * 对应的角色
     */
    private List<String> roles;
    /**
     * 对应的权限
     */
    private List<String> perms;
}
